package com.link.base.base.user.service;

import com.link.base.base.user.model.AppMenuVO;
import com.link.base.base.user.model.User;

import java.util.List;


/**
 * @author unknown
 * @date unknown
 * @comments 用户登录
 */
public interface LoginService {

    /**
     * 通过用户名获取用户
     *
     * @param username
     * @return 用户
     */
    public User loadUserByUsername(String username);

    /**
     * 更新最后登录时间
     *
     * @param record 用户信息
     * @throws Exception
     */
    public void lastLoginDateUpdate(User record) throws Exception;

    /**
     * 查询用户
     *
     * @param username
     * @param corp
     * @return 用户
     */
    public User getUser(String username, String corp);

    List<AppMenuVO> getUserAppMenuList(User user);
}
